﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
using KPIS.GERP.GHRMS.BLL;
using KPIS.GERP.GHRMS.IBLL;
using KPIS.GERP.GHRMS.MODEL;

namespace KPIS.GERP.GHRMS.APP.App_UI.Controls
{
    public partial class PositionCombo : System.Web.UI.UserControl
    {
        private IPositionBLL posBLL = new PositionBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
        }
        public void ListPosition()
        {
            ListPosition("");
        }
        public void ListPosition(string JobSite)
        {
            IList<PositionInfo> InfoList = posBLL.ListPositions(JobSite);

            cbPosition.DataSource = InfoList;
            cbPosition.DataBind();
        }
        public void ListPosition(string JobSite, string EmployeeType)
        {
            IList<PositionInfo> InfoList = posBLL.ListPositions(JobSite, EmployeeType);
            
            cbPosition.DataSource = InfoList;
            cbPosition.DataBind();
        }
    }
}